﻿@model List<Kojarskiy.Models.SiteMap>

@{
    var modelCount = Model.Count();
    if(modelCount > 0)
    {
        <div style="padding-left: 10px; max-width: 1000px;">
                <div class="float_l" slyle="max-width: 45%">
                    @for (int i = 0; i < modelCount / 2; i++ )
                    {
                        <div style="text-align: left;padding-bottom: 5px; padding-top: 5px;">
                            <span class="glyphicon glyphicon-ok small" style="color: green; padding-right: 5px;"></span> 
                            <a href="@Url.Action("Page", "Home", new { page = Model[i].Path })" class="catalog-item"> @Model[i].PageName</a> 
                        </div>                   
                    }                    
                </div>
                <div class="float_r" slyle="max-width: 45%">
                    @for (int i = modelCount / 2; i < modelCount; i++)
                    {
                        <div style="text-align: left;padding-bottom: 5px;padding-top: 5px;">
                            <span class="glyphicon glyphicon-ok small" style="color: green; padding-right: 5px;"></span> 
                            <a href="@Url.Action("Page", "Home", new { page = Model[i].Path })" class="catalog-item"> @Model[i].PageName</a> 
                        </div>                   
                    }                    
                </div>
        </div>

    }
}

